package com.wanmait.happyheating.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
* Created by Mybatis Generator 2021/05/10
*/
@Data
@TableName(value = "orders_return")
public class OrdersReturn implements Serializable {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联订单id
     */
    @TableField(value = "ordersinfo_id")
    private Integer ordersinfoId;
    @TableField(exist = false)
    private Ordersinfo ordersinfo;

    /**
     * 返修原因
     */
    @TableField(value = "return_reason")
    private String returnReason;

    /**
     * 返修图片
     */
    @TableField(value = "return_picture")
    private String returnPicture;

    /**
     * 预约时间段开始
     */
    @TableField(value = "start_time")
    private Timestamp startTime;

    /**
     * 预约时间结束 
     */
    @TableField(value = "end_time")
    private Timestamp endTime;

    /**
     * 上门时间
     */
    @TableField(value = "return_visit_time")
    private Timestamp returnVisitTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ORDERS_ID = "orders_id";

    public static final String COL_RETURN_REASON = "return_reason";

    public static final String COL_RETURN_PICTURE = "return_picture";

    public static final String COL_START_TIME = "start_time";

    public static final String COL_END_TIME = "end_time";

    public static final String COL_RETURN_VISIT_TIME = "return_visit_time";
}